package com.yc.system.service.impl;

import com.yc.system.domain.SysUserStorage;
import com.yc.system.mapper.SysUserStorageMapper;
import com.yc.system.service.SysUserStorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author YanChen
 * @Date 2025/4/13 10:42
 **/
@Service
public class SysUserStorageServiceImpl implements SysUserStorageService {

    @Autowired
    private SysUserStorageMapper userStorageMapper;

    /**
     * 根据用户ID查询存储信息
     */
    @Override
    public SysUserStorage getStorageByUserId(Long userId) {
        return userStorageMapper.selectByUserId(userId);
    }
}
